package com.example.bookstore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.bookstore.dto.BookCategoryTreeDto;
import com.example.bookstore.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    List<BookCategoryTreeDto> selectTreeNodeChild(int id);

    List<BookCategoryTreeDto> selectAllTreeNodes();

    List<BookCategoryTreeDto> selectTreeNodeParent();
}
